package com.aia.prm.service;

public class ServiceResult {
	private String errorMsg;

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return "00".equals(code) ? "SUCCESS" : "FAILURE" + ":" + code + ":" + errorMsg;
	}

	private String code;

}
